package com.ming.service.impl;

import com.ming.dao.FoodDao;
import com.ming.po.Food;
import com.ming.po.ResponseBean;
import com.ming.service.FoodService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class FoodServiceImpl implements FoodService {

    @Autowired
    private FoodDao fd;

    // 根据商家Id查询该商家的商品信息
    @Override
    public ResponseBean<List<Food>> listFoodByBusinessId(Integer businessId) {
        return new ResponseBean<>(fd.listFoodByBusinessId(businessId));
    }
}
